package com.ca.project.Server.Modules.Tweets.PO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.List;

/**
 * @PACKAGE_NAME: com.film.city.Server.Common.Modules.Tweets.PO
 * @NAME: CreateTweetsPO
 * @USER: ASUS
 * @DATE: 26/4/2024
 * @TIME: 上午4:07
 **/
@Data
@ApiModel(value = "创建推文")
public class CreateTweetsPO implements Serializable {

    private static final long serialVersionUID = 394042583472574L;

    @ApiModelProperty(value = "上传用户", required = true)
    @NotBlank(message = "上传用户不能为空")
    private String t_create_user;

    @ApiModelProperty(value = "推文题目", required = true)
    @NotBlank(message = "推文题目不能为空")
    private String t_title;

    @ApiModelProperty(value = "推文内容", required = true)
    @NotBlank(message = "推文内容不能为空")
    private String t_content;

    @ApiModelProperty(value = "推文封面", required = true)
    @NotBlank(message = "推文封面不能为空")
    private String t_cover;

/*    @ApiModelProperty(value = "推文视频", required = true)
    @NotBlank(message = "推文视频不能为空")
    private String t_video;*/

    @ApiModelProperty(value = "推文类别", required = true)
    @NotBlank(message = "推文类别不能为空")
    private String radio;

    @ApiModelProperty(value = "推文图片的id集合")
    private List<String> t_img_id;
}
